package com.imooc.dianping.common;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Getter
@AllArgsConstructor
@NoArgsConstructor
public enum EmBusinessError {

    CATEGORY_DUP_FAIL(40001,"品类名称已经存在"),

    ADMIN_SHOULD_LOGIN(30001,"管理员需要先登录"),

    REGISTER_DUP_FAIL(20001,"用户已存在"),
    LOGIN_ERROR(20002,"用户名或密码错误"),

    PARAMETER_VALIDATION_ERROR(1005,"请求参数校验失败"),
    BIND_EXCEPTION_FOUND(10004,"请求参数错误"),
    NO_HANDLER_FOUND(10003,"找不到执行的路径"),
    UNKNOWN_ERROR(10002,"未知错误"),
    NO_OBJECT_FOUND(10001,"请求对象不存在");

    private Integer errCode;

    private String errMsg;

}
